xl: suppress suspend/resume functions on platforms which do not support it.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 12 Feb 2014 14:27:37 +0000 (14:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 13 Feb 2014 09:10:29 +0000 (09:10 +0000)
commit3ac3817762d1a8b39fa45998ec8c40cabfcfc802
tree7ad4c5d6e12a52ca112d553f26fd1e9c539e1636
parentd883c179a74111a6804baf8cb8224235242a88fc
xl: suppress suspend/resume functions on platforms which do not support it.

ARM does not (currently) support migration, so stop offering tasty looking
treats like "xl migrate".

Apart from the UI improvement my intention is to use this in osstest to detect
whether to attempt the save/restore/migrate tests.

Other than the additions of the #define/#ifdef there is a tiny bit of code
motion ("dump-core" in the command list and core_dump_domain in the
implementations) which serves to put ifdeffable bits next to each other.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.h
tools/libxl/xl.h
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c